home *** CD-ROM | disk | FTP | other *** search
- Path: uunet!cs.utexas.edu!convex!texsun!cronkite!exodus!NMSU.Edu!mleisher
- From: mleisher@NMSU.Edu
- Newsgroups: comp.sources.x
- Subject: v13i075: kterm, Patch3, Part01/01
- Message-ID: <16339@exodus.Eng.Sun.COM>
- Date: 6 Jul 91 07:11:32 GMT
- References: <csx-13i075-kterm@uunet.UU.NET>
- Sender: news@exodus.Eng.Sun.COM
- Lines: 205
- Approved: argv@sun.com
-
- Submitted-by: mleisher@NMSU.Edu
- Posting-number: Volume 13, Issue 75
- Archive-name: kterm/patch3
- Patch-To: kterm: Volume 12, Issue 82-89
- Patch-To: kterm: Volume 13, Issue 40 (patch 1 5/25/91)
- Patch-To: kterm: Volume 13, Issue 41 (patch 2 5/30/91)
-
- Here is patch 3 for kterm 4.1.2 which bring kterm to patchlevel 9.
-
- Fixes:
-
- o Incorrect terminfo file entries fixed
-
- o New terminfo file puts special/line drawing characters in G3
- instead of G1 to avoid conflict with Hangul/Hanzi/Kanji in G1.
-
- Updates:
-
- o Iris-4D, Irix 3.3.2 support added
-
- o The LPASS8 flag is now set by default
-
- o README file updated a little
-
- Thanks go to Rick Stevenson of Pyramid Technology Corp for supplying
- the fixes to the terminfo file, and to Kevin Dalley of TAMRI for
- supplying the Iris patches.
-
- -------------------- Cut here ---------------------------
- *** README.ORIG Sun Jun 23 22:24:11 1991
- --- README Sun Jun 23 23:19:27 1991
- ***************
- *** 42,48 ****
- where the Traditional Chinese ideographs are used.
- NOTE: Rumor has it that it is, or will be a standard in
- Taiwan. I don't have any facts on this yet.
- ! CODE RANGE: 0xA140-0xF9FE
-
- 2. Japanese
-
- --- 42,48 ----
- where the Traditional Chinese ideographs are used.
- NOTE: Rumor has it that it is, or will be a standard in
- Taiwan. I don't have any facts on this yet.
- ! CODE RANGE: 0xA140-0xF9FE (excluding 0x7F to 0x9F as byte2)
-
- 2. Japanese
-
- ***************
- *** 190,196 ****
-
- Martin Walter from University of Freiburg
-
- ! Sun May 26 23:09:44 1991
-
- Internet: mleisher@nmsu.edu
- Bitnet : mleisher@nmsu.bitnet
- --- 190,200 ----
-
- Martin Walter from University of Freiburg
-
- ! Kevin Dalley at TAMRI
- !
- ! Rick Stevenson at Pyramid Technology Corp.
- !
- ! Sun Jun 23 23:19:19 1991
-
- Internet: mleisher@nmsu.edu
- Bitnet : mleisher@nmsu.bitnet
- *** main.c.ORIG Wed Jun 19 13:16:10 1991
- --- main.c Sun Jun 23 22:23:21 1991
- ***************
- *** 283,292 ****
- --- 283,294 ----
- };
-
- #ifdef USE_SYSV_UTMP
- + #ifndef sgi /* SGI utmp.h has ANSI prototypes on these */
- extern struct utmp *getutent();
- extern struct utmp *getutid();
- extern struct utmp *getutline();
- extern void pututline();
- + #endif /* !sgi */
- extern void setutent();
- extern void endutent();
- extern void utmpname();
- ***************
- *** 662,668 ****
- static void Version ()
- {
- fprintf (stderr, "kterm: version %s (patchlevel %d)\n", KTERM_VERSION,
- ! patchlevel);
- fprintf (stderr, " with");
- #ifdef KTERM_KANJI
- fprintf (stderr, " [KTERM_KANJI]");
- --- 664,670 ----
- static void Version ()
- {
- fprintf (stderr, "kterm: version %s (patchlevel %d)\n", KTERM_VERSION,
- ! PATCHLEVEL);
- fprintf (stderr, " with");
- #ifdef KTERM_KANJI
- fprintf (stderr, " [KTERM_KANJI]");
- ***************
- *** 1178,1183 ****
- --- 1180,1201 ----
- /* got one! */
- return(0);
- #else /* not (umips && SYSTYPE_SYSV) */
- + #ifdef sgi
- + /* adapted from the preceding umips/SYSV version. But removed unused
- + open of slave tty. It does not seem to be necessary. -jlh */
- +
- + # define minor(x) ((int)((x)&0377)) /* from MIPS sys/types.h */
- + struct stat fstat_buf;
- +
- + *pty = open ("/dev/ptc", O_RDWR);
- + if (*pty < 0 || (fstat (*pty, &fstat_buf)) < 0) {
- + return(1);
- + }
- + sprintf (ttydev, "/dev/ttyq%d", minor(fstat_buf.st_rdev));
- + sprintf (ptydev, "/dev/ptyq%d", minor(fstat_buf.st_rdev));
- + /* got one! */
- + return(0);
- + #else /* not sgi */
- #ifdef CRAY
- for (; devindex < 256; devindex++) {
- sprintf (ttydev, "/dev/ttyp%03d", devindex);
- ***************
- *** 1216,1221 ****
- --- 1234,1240 ----
- * condition and let our caller terminate cleanly.
- */
- return(1);
- + #endif /* sgi */
- #endif /* umips && SYSTYPE_SYSV */
- #endif /* att */
- }
- ***************
- *** 1762,1767 ****
- --- 1781,1789 ----
- {
- #include <grp.h>
- struct group *ttygrp;
- + #ifdef sgi
- + struct group *getgrnam();
- + #endif
- if (ttygrp = getgrnam("tty")) {
- /* change ownership of tty to real uid, "tty" gid */
- chown (ttydev, screen->uid, ttygrp->gr_gid);
- ***************
- *** 1898,1903 ****
- --- 1920,1929 ----
- }
- #undef TMODE
-
- + #ifndef LPASS8
- + #define LPASS8 0
- + #endif /* LPASS8 */
- + lmode |= LPASS8;
- if (ioctl (tty, TIOCSETP, (char *)&sg) == -1)
- HsSysError (cp_pipe[1], ERROR_TIOCSETP);
- if (ioctl (tty, TIOCSETC, (char *)&tc) == -1)
- *** patchlevel.h.ORIG Sun Jun 23 22:18:01 1991
- --- patchlevel.h Sun Jun 23 22:18:16 1991
- ***************
- *** 1 ****
- ! #define patchlevel 8
- --- 1 ----
- ! #define PATCHLEVEL 9
- *** terminfo.kt.ORIG Sun Jun 23 22:35:44 1991
- --- terminfo.kt Sun Jun 23 22:41:59 1991
- ***************
- *** 1,4 ****
- kterm|kterm hangul hanzi kanji terminal emulator (X window system),
- ! hs, eslok, tsl=\E[?%i%dT, fs=\E[?F, ds=\E[?H,
- sc=\E7, rc=\E8, csr=\E[%i%p1%d;%p2%dr,
- use=xterm,
- --- 1,14 ----
- + #
- + # Kterm terminfo description
- + #
- + # Differences from xterm:
- + # - use G3 for special and line drawing character set
- + # (xterm uses G1, but kterm needs G1 for Kanji/Hangul/Hanzi)
- + # - provide status line information
- + #
- kterm|kterm hangul hanzi kanji terminal emulator (X window system),
- ! enacs=\E(B\E+0, smacs=\Eo,
- ! sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\Eo%e^O%;,
- ! hs, eslok, tsl=\E[?%i%dT, fsl=\E[?F, dsl=\E[?H,
- sc=\E7, rc=\E8, csr=\E[%i%p1%d;%p2%dr,
- use=xterm,
- -----------------------------------------------------------------------------
- mleisher@nmsu.edu "I laughed.
- Mark Leisher I cried.
- Computing Research Lab I fell down.
- New Mexico State University It changed my life."
- Las Cruces, NM - Rich [Cowboy Feng's Space Bar and Grille]
-
- --
- Dan Heller
- O'Reilly && Associates Z-Code Software Comp-sources-x:
- Senior Writer President comp-sources-x@uunet.uu.net
- argv@ora.com argv@zipcode.com
-